package tpo.lmhprovider.lmhprovider.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import pojo.Brand;
import tpo.lmhprovider.lmhprovider.dao.BrandMapper;
import tpo.lmhprovider.lmhprovider.service.BrandService;

import java.util.List;
import java.util.Map;

@Service
public class BrandServiceImpl implements BrandService {
    @Autowired
    BrandMapper brandMapper;

    @Override
    public List<Brand> getBrand(Map map) {
        return brandMapper.getBrand(map);
    }

    @Override
    public int updateBrand(Map map) {
        return brandMapper.updateBrand(map);
    }

    @Override
    public int addBrand(Map map) {
        return brandMapper.addBrand(map);
    }

    @Override
    public int delBrand(Map map) {
        return brandMapper.delBrand(map);
    }
}
